package com.example.design.patterns.冰河.创建型模式.工厂.冰河;

import com.example.design.patterns.冰河.创建型模式.工厂.冰河.concreteCreator.StudentWorkFactory;
import com.example.design.patterns.冰河.创建型模式.工厂.冰河.concreteCreator.TeacherWorkFactory;

public class Test {
    public static void main(String[] args) {
        StudentWorkFactory studentWorkFactory = new StudentWorkFactory();
        studentWorkFactory.getWork().doWork();

        TeacherWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }
}
